package com.atde._05_behavioral_design_patterns.memento;


/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._05_behavioral_design_patterns.memento
 * @Author: Del
 * @CreateTime: 2025-06-30  02:21
 * @Description: 备忘录模式 --- 创建一个备忘录对象，将当前时刻的状态保存在备忘录对象中，并返回备忘录对象
 * @Version: 1.0
 */
public class Memento {
    // 状态信息
    private String state;

    public Memento(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }
}
